from django.db import models

# Create your models here.

class Goods(models.Model):
    title = models.CharField(max_length=120)
    price1=models.IntegerField('普通价格')
    price2 = models.IntegerField('会员价格')
    pic = models.CharField(max_length=120)

    class Meta:
        db_table = 'goods'


class User(models.Model):
    username = models.CharField(max_length=120)
    password = models.CharField(max_length=120)

    class Meta:
        db_table = 'user'

class Order(models.Model):
    user_id = models.IntegerField()
    title = models.CharField(max_length=120)
    price = models.IntegerField()
    name = models.CharField(max_length=120)
    phone = models.CharField(max_length=11)

    class Meta:
        db_table = 'order'